/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconShare: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'rem'} height={size + 'rem'} style={style} {...rest}>
      <path
        d="M717.2096 869.9904a52.736 52.736 0 0 1-29.0304-8.8064L493.056 731.648a25.344 25.344 0 1 1 28.1088-42.3424l195.1744 129.6896 86.016-677.2736-593.3056 337.408L393.1136 604.16a25.344 25.344 0 1 1-28.16 42.2912l-184.1664-122.3168a52.0704 52.0704 0 0 1-23.3984-45.3632c0.6144-18.3296 10.3936-34.7136 26.3168-43.8272l590.848-339.2a52.5312 52.5312 0 0 1 78.2336 51.9168l-83.456 676.3008a52.3264 52.3264 0 0 1-52.1216 45.9776z"
        fill={getIconColor(color, 0, '#333333')}
      />
      <path
        d="M381.5936 869.9904a25.4464 25.4464 0 0 1-25.3952-25.3952v-117.248l432.9984-607.3344a25.4464 25.4464 0 0 1 41.4208 29.3888L406.9888 743.5776v101.0176a25.4464 25.4464 0 0 1-25.3952 25.3952z"
        fill={getIconColor(color, 1, '#333333')}
      />
    </svg>
  );
};

IconShare.defaultProps = {
  size: 22,
};

export default IconShare;
